package com.yango.teach.service;

import com.yango.teach.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yango.teach.entity.vo.course.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author LiDingYin
 * @since 2021-07-24
 */
public interface ChapterService extends IService<Chapter> {

    //课程章节小节列表-嵌套
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    //删除章节
    boolean removeChapterById(String id);

    //根据课程id删除章节
    boolean removeByCourseId(String courseId);
}
